package com.bw.liveplay.common.mvvm.mondel

import com.bw.liveplay.common.entity.BaseEntity
import com.bw.liveplay.common.entity.HomeFeedEntity
import com.bw.liveplay.common.network.Api
import com.bw.liveplay.common.utils.ApiService
import io.reactivex.Observable

/**
 * @author KK
 * @description:
 * @date :2021/11/15 8:16
 *
 */
class AddCommentModel : BaseModel() {

    fun requestAddComment(commentText : String,
                          height:Int,
                          image_url:String,
                          itemId:Long,
                          userId:Int,
                          video_url:String,
                          width:Int):Observable<BaseEntity>{

        var requestAddComment = ApiService.instance().getRetrofit()!!.create(Api::class.java)
            .requestAddComment(commentText, height, image_url, itemId, userId, video_url, width)

        return changeFun(requestAddComment)

    }

}